<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>props传递数据</title>
    </head>
    <body>
         <div id = "app">
            <my-component message = "来自父组件的数据" message1="测试"></my-component>
        </div>
        <script src = "../../vue.min.js"></script>
        <script>
            Vue.component('my-component',{
                props:['message','message1'],
                // props:['message'],
                template:'<div>{{ message }} {{message1}}</div>'
            });
            var app = new Vue({
                el:'#app',
            })
        </script>

    </body>
</html>